<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <title>稻稻工厂—商户自营管理</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/colorpicker.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/datepicker.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/uniform.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/select2.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/matrix-style.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/matrix-media.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap-wysihtml5.css" />
    <link href="/thinkphp/Public/admin/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>

    <script src="/thinkphp/Public/admin/js/jquery.min.js"></script>
</head>

<body>
<!--Header-part-->
<div id="header">
    <h1><a href="dashboard.html">商户自营管理</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
    <ul class="nav">
        <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">Welcome <?php echo ($AdminUser); ?></span><b class="caret"></b></a>
            <ul class="dropdown-menu">
                <li class="divider"></li>
                <li><a href="<?php echo U('Login/index');?>"><i class="icon-key"></i> Log Out</a></li>
            </ul>
        </li>
        <li class=""><a title="" href="<?php echo U('Login/index');?>"><i class="icon icon-cog"></i> <span class="text">登录</span></a></li>
        <li class=""><a title="" href="<?php echo U('Login/outLogin');?>"><i class="icon icon-share-alt"></i> <span class="text">Logout</span></a></li>
    </ul>
</div>

<!--start-top-serch-->
<div id="search">
    <input type="text" placeholder="Search here..."/>
    <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
<!--close-top-serch-->

<!--sidebar-menu-->

<div id="sidebar">
    <a href="#" class="visible-phone"><i class="icon icon-list"></i>Forms</a>
    <ul>
        <li>
            <a href="#"><i class="icon icon-list"></i> <span>商品</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Business/index');?>">商品列表</a></li>
            <li><a href="<?php echo U('Business/addGoods');?>">添加</a></li>
        </ul>
        <li>
            <a href="#"><i class="icon icon-list"></i> <span>我的订单</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Business/myOrder');?>">订单列表</a></li>
        </ul>
    </ul>
</div>

<!--close-left-menu-stats-sidebar-->

<div id="content">
  <div class="container-fluid"><hr>
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i></span>
            <h5>x修改商品</h5>
          </div>
          <div class="widget-content nopadding">
            <form class="form-horizontal" method="post" action="<?php echo U('Business/updataGoods/id/'.$data['id']);?>" name="basic_validate" id="basic_validate" novalidate="novalidate" enctype="multipart/form-data">

                <div class="control-group">
                    <label class="control-label">商品名称</label>
                    <div class="controls">
                        <input type="text" name="name" id="name" value="<?php echo ($data["name"]); ?>">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">本店售价</label>
                    <div class="controls">
                        <input type="text" name="shop_price" id="shop_price" value="<?php echo ($data["shop_price"]); ?>">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">详细描述</label>
                    <div class="controls">
                        <textarea rows="3" cols="5" name="desc"><?php echo ($data["desc"]); ?></textarea>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">缩略图</label>
                    <div class="controls">
                        <input type="file" capture="camera" accept="image/*"  name="thumb" id="thumb">
                    </div>
                    <label class="control-label">已上传的缩略图</label>
                    <div class="controls">
                        <img src="/thinkphp/Uploads/seller/thumb/<?php echo ($data["thumb"]); ?>" width="100" height="100"/>
                    </div>
                </div>
              <div class="form-actions">
                <input type="submit" value="submit" class="btn btn-success">
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!--Footer-part-->
<div class="row-fluid">
    <div id="footer" class="span12"> 2013 &copy; Matrix Admin. More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a> </div>
</div>
<!--end-Footer-part-->

<script src="/thinkphp/Public/admin/js/matrix.form_common.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.ui.custom.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap.min.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-colorpicker.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-datepicker.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.toggle.buttons.html"></script>
<script src="/thinkphp/Public/admin/js/masked.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.uniform.js"></script>
<script src="/thinkphp/Public/admin/js/select2.min.js"></script>
<script src="/thinkphp/Public/admin/js/matrix.js"></script>
<script src="/thinkphp/Public/admin/js/wysihtml5-0.3.0.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.peity.min.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-wysihtml5.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.dataTables.min.js"></script>
<script src="/thinkphp/Public/admin/js/yanGradyJS/yanGrady.js"></script>
<script>
    $('.textarea_editor').wysihtml5();
</script>
</body>
</html>